package com.joolun.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joolun.mall.entity.Chain;
import com.joolun.mall.entity.ChainPlan;

import java.util.List;

/**
 * 接龙计划相关
 * 
 * @author www.joolun.com
 * @date 2025-05-20
 */
public interface IChainPlanService extends IService<ChainPlan>
{

    /**
     * 获取用户已经接龙链接id列表
     * @param planId
     * @param userId
     * @return
     */
    List<Long> userChains(Long planId, String userId);

    /**
     * 获取微信接龙消息
     * @param planId
     * @return
     */
    String getWxMsg(Long planId);

    boolean add(ChainPlan dto);

    Page<ChainPlan> page1(Page<ChainPlan> page, ChainPlan dto);
    /**
     * 详情
     * @param id
     * @return
     */
    ChainPlan detail(Long id);
}
